package tau_sadna.tau_map;

public class MLString {
	public String name_en;
	public String name_he;
	
	MLString(String name_en, String name_he){
		this.name_en = name_en;
		this.name_he = name_he;
	}
	
	public String getName(){
		if(MainActivity.language == MainActivity.HEBREW){
			return getNameInLang("he");
		}else if(MainActivity.language == MainActivity.ENGLISH){
			return getNameInLang("en");
		}else{
			return null;
		}
	}
	
	public String getNameInLang(String lang){
		if(lang.equals("he")){
			return this.name_he;
		}
		if(lang.equals("en")){
			return this.name_en;
		}
		return null;
	}
}
